import { Route } from '../decorator/router'
import { resolve } from 'path'

const r = (path:string) => resolve(__dirname, path)

export const router = (app:any) => {
  const apiPath = r('../routes')
  const router = new Route(app, apiPath)

  router.init()
}